const activityAPi = '/api/activity'

export default {
  //获取邀请活动
  getInviteActivity: (...args) =>
    uni.$request.post(`${activityAPi}/getInviteActivity`, ...args),
  //获取邀请活动详情（规则）
  getInviteActivityInfo: (...args) =>
    uni.$request.post(`${activityAPi}/getInviteActivityInfo`, ...args),
  //参加邀请活动
  partInInviteActivity: (...args) =>
    uni.$request.post(`${activityAPi}/partInInviteActivity`, ...args),
  //获取注册活动
  getRegisterActivity: (...args) =>
    uni.$request.post(`${activityAPi}/getRegisterActivity`, ...args),
  //注册成功奖品弹窗页面
  getRegisterActivityPrize: (...args) =>
    uni.$request.post(`${activityAPi}/getRegisterActivityPrize`, ...args),
  //套票或影票订单领取奖品
  grantMissionActivityPrize: (...args) =>
    uni.$request.post(`${activityAPi}/grantMissionActivityPrize`, ...args),
  //参加邀请活动
  receivePrize: (...args) =>
    uni.$request.post(`${activityAPi}/receivePrize`, ...args)
}
